﻿#pragma once

#define BUSY 9999

#define HID_NOT_INIT -999

#define HID_ERR -1

#define HID_ENCODE_ERROR -2

// 解码数据失败
#define HID_DECODE_ERROR -11

// 写数据失败
#define HID_WRITE_ERROR -4

#define HID_READ_TIMEOUT -5

/* 下位机取消发送任务 */
#define HID_TASK_CANCEL -6

/* 内存分配错误  */
#define HID_MALLOC_MEMORY_ERROR -1000

#define HID_MEMORY_ERROR -10001

#define HID_CLOSED -10014

#define OK 1
